import request from '@/utils/request'
// 光伏系统电站查询
export const getchongdianapi = params => request.get('pes-microservice-biz/pes/power/station/picture/set/charge/image', { params })
// 储能系统图片查询
export const getchunengimgapi = params => request.get('pes-microservice-biz/pes/power/station/picture/set/es/image', { params })
// 充电系统图片查询
export const  getdianzhanlistapi= params => request.get('pes-microservice-biz/pes/power/station/picture/set/pv/image', { params })
// 光伏系统图片新增
export const postguangfuaddapi = (classId, data) => request.post(`pes-microservice-biz/pes/power/station/picture/set/pv/add?classId=${classId}`, data,
  { headers: { 'Content-Type': 'multipart/form-data' } })
// 光伏系统图片删除
export const postguangfudelapi = classId => request.post(`pes-microservice-biz/pes/power/station/picture/set/pv/delete?classId=${classId}`)
// 光伏系统图片修改
export const postguangfuupdapi=(classId, data)=>request.post(`pes-microservice-biz/pes/power/station/picture/set/pv/update?classId=${classId}`, data,
  { headers: { 'Content-Type': 'multipart/form-data' } })
//储能系统图片新增
export const postchunnegaddapi=(classId, data)=>request.post(`pes-microservice-biz/pes/power/station/picture/set/es/add?classId=${classId}`, data,
  { headers: { 'Content-Type': 'multipart/form-data' } })
// 储能图片修改
export const postchunnegupdapi=(classId, data)=>request.post(`pes-microservice-biz/pes/power/station/picture/set/es/update?classId=${classId}`, data,
  { headers: { 'Content-Type': 'multipart/form-data' } })
// 储能图片删除
export const postchunnegdelapi = classId => request.post(`pes-microservice-biz/pes/power/station/picture/set/es/delete?classId=${classId}`)
// 充电图片新增
export const postchongdianaddapi=(classId, data)=>request.post(`pes-microservice-biz/pes/power/station/picture/set/charge/add?classId=${classId}`, data,
  { headers: { 'Content-Type': 'multipart/form-data' } })
// 充电图片修改
export const postchongdianupdapi=(classId, data)=>request.post(`pes-microservice-biz/pes/power/station/picture/set/charge/update?classId=${classId}`, data,
  { headers: { 'Content-Type': 'multipart/form-data' } })
// 充电图片删除
export const postchongdiandelapi=classId => request.post(`pes-microservice-biz/pes/power/station/picture/set/charge/delete?classId=${classId}`)